TextShape scaleX

Gets or sets the scaling in the X axis direction. ScaleX adjusts the horizontal scale to increase or decrease the width of the text without changing the font size.

public float scaleX {get;Set}

 

Return value

float Scaling percentage applied on the shape

 

Example

Copy
TextShape textShape = new TextShape();

textShape.AddText("Sample text Sample text", "Arial", FontStyle.Regular, 10f, 1f);
textShape.TextBoxHeight = 20;
textShape.TextBoxWidth = 60;
textShape.Location.X = 0;
textShape.Location.Y = 0;

textShape.ScaleX = 1.2f;
textShape.ScaleY = 1.2f;